home *** CD-ROM | disk | FTP | other *** search
- /*
- ** Copyright (c) 1990,1991 Keld Simonsen
- ** All rights reserved.
- **
- ** Written by Keld Simonsen, RAP, Sct. Joergens Alle 8,
- ** DK-1615 Copenhagen V, Denmark
- **
- ** Redistribution and use of this routine in source and binary forms are
- ** permitted provided that: (1) source distributions retain this entire
- ** copyright notice. (2) The character and character set codes and names
- ** may not be changed. (3) The programming code must remain backwards
- ** compatible.
- **
- ** The restriction on altering of names is done so that all versons
- ** of the code have a chance of being compatible. If you want alterations
- ** or additions, please mail me (preferably email to keld@dkuug.dk)
- ** and I will consider it for future releases.
- **
- ** If the material is included in commercial products, donations
- ** will be most appreciated.
- **
- ** Keld Simonsen
- **
- ** @(#)$Header: /usr/local/src/mail/sendmail/ida/charset/RCS/charset.h,v 2.0 1991/04/05 05:33:29 paul Exp $
- */
-
- /*
- * The following 3 parameters may need modifying.
- */
- typedef unsigned char CHAR8U; /* must be able to hold values 0-255 */
- typedef short int INT16S; /* Must be able to hold 16 bits signed int */
- #define DEFAULT_ESCAPE 29 /* see doc/DESIGN.extra for more info */
-
- #define IN_CH INT16S
- #define OUT_CH CHAR8U
-
- #define C256L 256L
- #define C256 256 /* max val of any char encoded as one byte */
- #define LSIZE 256 /* max byte chars on a line, in a file name */
-
- typedef struct charset CHARSET;
- struct charset
- {
- CHARSET *next;
- INT16S ecma;
- char *name;
- IN_CH *in; /* characters in 2 byte mnemonic format */
- OUT_CH *out; /* characters in 8 bit format */
- INT16S esc;
- };
-